package com.fgbf.todo.Managers;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

/**
 * A class to hold static methods for pop-up Notifications to be used inside of Activities
 * @author Warren Shenk
 * @date 2/23/2012
 */
public class NotificationManager {
	
	
	/////////////////////////////////////////////////////////////////////////////////
	// STATIC METHODS
	/////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Creates and shows a pop-up to the user, allows the user to click "OK"
	 * @param currActivity The current Activity 
	 * @param alertTxt The desired test for the pop-up
	 */
    public static void alertUserOK(Activity currActivity, String alertTxt) {
    	AlertDialog.Builder builder = new AlertDialog.Builder(currActivity);
		builder.setMessage(alertTxt)
		       .setCancelable(false)
		       .setNeutralButton("OK", new DialogInterface.OnClickListener() {
		           public void onClick(DialogInterface dialog, int id) {
		           }
		       });
		AlertDialog alert = builder.create();
		alert.show();
    }
    //---------------------------------------------------------------------------------

}
